<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <meta name="_csrf" th:content="${_csrf.token}"/>
    <!-- default header name is X-CSRF-TOKEN -->
    <meta name="_csrf_header" th:content="${_csrf.headerName}"/>
    <title layout:title-pattern="$DECORATOR_TITLE - $CONTENT_TITLE">AdminLTE</title>
    <!-- Bootstrap 3.3.7 -->
    <link rel="stylesheet" th:href="@{/admin-lte/bower_components/bootstrap/dist/css/bootstrap.min.css}">
    <!-- Font Awesome -->
    <link rel="stylesheet" th:href="@{/admin-lte/bower_components/font-awesome/css/font-awesome.min.css}">
    <!-- Ionicons -->
    <link rel="stylesheet" th:href="@{/admin-lte/bower_components/Ionicons/css/ionicons.min.css}">
    <!-- Theme style -->
    <link rel="stylesheet" th:href="@{/admin-lte/dist/css/AdminLTE.min.css}">
    <!-- AdminLTE Skins. Choose a skin from the css/skins
         folder instead of downloading all of them to reduce the load. -->
    <link rel="stylesheet" th:href="@{/admin-lte/dist/css/skins/_all-skins.min.css}">

    <!-- Morris chart -->
    <link rel="stylesheet" th:href="@{/admin-lte/bower_components/morris.js/morris.css}">
    <!-- jvectormap -->
    <link rel="stylesheet" th:href="@{/admin-lte/bower_components/jvectormap/jquery-jvectormap.css}">
    <!-- Date Picker -->
    <link rel="stylesheet"
          th:href="@{/admin-lte/bower_components/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css}">
    <!-- Daterange picker -->
    <link rel="stylesheet" th:href="@{/admin-lte/bower_components/bootstrap-daterangepicker/daterangepicker.css}">
    <!-- bootstrap wysihtml5 - text editor -->
    <link rel="stylesheet" th:href="@{/admin-lte/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css}">
    <!-- Pace style -->
    <link rel="stylesheet" th:href="@{/admin-lte/plugins/pace/pace.min.css}">
    <!-- iCheck for checkboxes and radio inputs -->
    <link rel="stylesheet" th:href="@{/admin-lte/plugins/iCheck/all.css}">
    <!-- Bootstrap Color Picker -->
    <link rel="stylesheet"
          th:href="@{/admin-lte/bower_components/bootstrap-colorpicker/dist/css/bootstrap-colorpicker.min.css}">
    <!-- Bootstrap time Picker -->
    <link rel="stylesheet" th:href="@{/admin-lte/plugins/timepicker/bootstrap-timepicker.min.css}">
    <link rel="stylesheet"
          th:href="@{/admin-lte/bower_components/bootstrap-datetimepicker-master/css/bootstrap-datetimepicker.min.css}">
    <!-- Select2 -->
    <link rel="stylesheet" th:href="@{/admin-lte/bower_components/select2/dist/css/select2.min.css}">
    <!-- iCheck -->
    <link rel="stylesheet" th:href="@{/admin-lte/plugins/iCheck/flat/blue.css}">
    <!-- DataTables -->
    <link rel="stylesheet" th:href="@{/admin-lte/bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css}">
    <link rel="stylesheet" th:href="@{/admin-lte/bower_components/fullcalendar/dist/fullcalendar.min.css}">
    <link rel="stylesheet" th:href="@{/admin-lte/bower_components/fullcalendar/dist/fullcalendar.print.min.css}"
          media="print">

    <!--Treetable-->
    <link rel="stylesheet" th:href="@{/dist/treetable/jquery.treetable.css}">
    <link rel="stylesheet" th:href="@{/dist/jstree/themes/default/style.min.css}">
    <link rel="stylesheet" th:href="@{/dist/stepy/jquery.stepy.css}">
    <link rel="stylesheet" th:href="@{/dist/jquery.nestable.css}">
    <link rel="stylesheet" th:href="@{/dist/webuploader/webuploader.css}">

    <link rel="stylesheet" th:href="@{/dist/hint.css}">
    <link rel="stylesheet" th:href="@{/dist/layui/css/layui.css}">

    <link rel="stylesheet" th:href="@{/web-lte/css/upload.css}">
    <link rel="stylesheet" th:href="@{/admin-lte/css/app.css}">

    <!-- Google Font -->
    <link rel="stylesheet"
          href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->

    <!-- jQuery 3 -->
    <script th:src="@{/admin-lte/bower_components/jquery/dist/jquery.min.js}"></script>
    <!-- Bootstrap 3.3.7 -->
    <script th:src="@{/admin-lte/bower_components/bootstrap/dist/js/bootstrap.min.js}"></script>
    <script type="text/javascript" th:src="@{/dist/echarts/echarts.min.js}"></script>
    <script type="text/javascript" th:src="@{/dist/echarts/china.js}"></script>
    <script th:src="@{/dist/sockjs/sockjs.min.js}"></script>
    <script th:src="@{/dist/stomp/stomp.js}"></script>
    <script th:src="@{/dist/layer/layer.js}"></script>
    <script th:src="@{/dist/layui/layui.js}"></script>
    <script th:src="@{/admin-lte/js/app-config.js}"></script>
    <script>
        $(function () {
            // 添加 CSRF 头
            var token = $("meta[name='_csrf']").attr("content");
            var header = $("meta[name='_csrf_header']").attr("content");
            $.ajaxSetup({
                beforeSend: function (xhr) {
                    xhr.setRequestHeader(header, token);
                }
            });
        });
    </script>
</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">
    <div th:replace="/admin/fragments/header::header"></div>
    <div th:replace="/admin/fragments/left-menu::left-menu"></div>

    <div id="pjax-container" class="content-wrapper"
         layout:fragment="content">
        <section class="content-header">
            <h1>
                Dashboard
                <small>Control panel</small>
            </h1>
            <ol class="breadcrumb">
                <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
                <li class="active">Dashboard</li>
            </ol>
        </section>

        <section class="content">
            <div class="row">

            </div>
        </section>
    </div>


    <div th:replace="/admin/fragments/main-footer::main-footer"></div>
    <div th:replace="/admin/fragments/right-setting::right-setting"></div>
    <div class="control-sidebar-bg"></div>
</div>
<!-- jQuery Pjax -->
<script th:src="@{/dist/jquery.pjax.js}"></script>
<script th:src="@{/dist/jquery.form.js}"></script>
<script th:src="@{/dist/webuploader/webuploader.nolog.min.js}"></script>
<script th:src="@{/dist/jquery.nestable.js}"></script>
<script th:src="@{/dist/jstree/jstree.js}"></script>
<script th:src="@{/dist/stepy/jquery.stepy.js}"></script>
<!--treetable-->
<script th:src="@{/dist/treetable/jquery.treetable.js}"></script>
<!-- Slimscroll -->
<script th:src="@{/admin-lte/bower_components/jquery-slimscroll/jquery.slimscroll.min.js}"></script>
<!-- FastClick -->
<script th:src="@{/admin-lte/bower_components/fastclick/lib/fastclick.js}"></script>

<!-- jQuery UI 1.11.4 -->
<script th:src="@{/admin-lte/bower_components/jquery-ui/jquery-ui.min.js}"></script>
<!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
<script>
    $.widget.bridge('uibutton', $.ui.button);
</script>
<!-- Morris.js charts -->
<script th:src="@{/admin-lte/bower_components/raphael/raphael.min.js}"></script>
<script th:src="@{/admin-lte/bower_components/morris.js/morris.min.js}"></script>
<!-- Sparkline -->
<script th:src="@{/admin-lte/bower_components/jquery-sparkline/dist/jquery.sparkline.min.js}"></script>
<!-- jvectormap -->
<script th:src="@{/admin-lte/plugins/jvectormap/jquery-jvectormap-1.2.2.min.js}"></script>
<script th:src="@{/admin-lte/plugins/jvectormap/jquery-jvectormap-world-mill-en.js}"></script>
<!-- daterangepicker -->
<script th:src="@{/admin-lte/bower_components/moment/min/moment.min.js}"></script>
<script th:src="@{/admin-lte/bower_components/bootstrap-daterangepicker/daterangepicker.js}"></script>
<!-- datepicker -->
<script th:src="@{/admin-lte/bower_components/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js}"></script>
<script th:src="@{/admin-lte/dist/bootstrap-datepicker.zh-CN.js}"></script>
<!-- datepicker -->
<script th:src="@{/admin-lte/bower_components/bootstrap-datetimepicker-master/js/bootstrap-datetimepicker.js}"></script>
<script th:src="@{/admin-lte/bower_components/bootstrap-datetimepicker-master/js/locales/bootstrap-datetimepicker.zh-CN.js}"></script>
<!-- Bootstrap WYSIHTML5 -->
<script th:src="@{/admin-lte/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js}"></script>
<!-- AdminLTE dashboard demo (This is only for demo purposes) -->
<!--<script th:src="@{/admin-lte/dist/js/pages/dashboard.js}"></script>-->
<!-- FLOT CHARTS -->
<script th:src="@{/admin-lte/bower_components/Flot/jquery.flot.js}"></script>
<!-- FLOT RESIZE PLUGIN - allows the chart to redraw when the window is resized -->
<script th:src="@{/admin-lte/bower_components/Flot/jquery.flot.resize.js}"></script>
<!-- FLOT PIE PLUGIN - also used to draw donut charts -->
<script th:src="@{/admin-lte/bower_components/Flot/jquery.flot.pie.js}"></script>
<!-- FLOT CATEGORIES PLUGIN - Used to draw bar charts -->
<script th:src="@{/admin-lte/bower_components/Flot/jquery.flot.categories.js}"></script>
<!-- PACE -->
<script th:src="@{/admin-lte/bower_components/PACE/pace.min.js}"></script>
<!-- Select2 -->
<script th:src="@{/admin-lte/bower_components/select2/dist/js/select2.full.min.js}"></script>
<!-- InputMask -->
<script th:src="@{/admin-lte/plugins/input-mask/jquery.inputmask.js}"></script>
<script th:src="@{/admin-lte/plugins/input-mask/jquery.inputmask.date.extensions.js}"></script>
<script th:src="@{/admin-lte/plugins/input-mask/jquery.inputmask.extensions.js}"></script>
<!-- bootstrap color picker -->
<script th:src="@{/admin-lte/bower_components/bootstrap-colorpicker/dist/js/bootstrap-colorpicker.min.js}"></script>
<!-- bootstrap time picker -->
<script th:src="@{/admin-lte/plugins/timepicker/bootstrap-timepicker.min.js}"></script>
<!-- iCheck 1.0.1 -->
<script th:src="@{/admin-lte/plugins/iCheck/icheck.min.js}"></script>
<!-- CK Editor -->
<script th:src="@{/admin-lte/bower_components/ckeditor/ckeditor.js}"></script>
<!-- DataTables -->
<script th:src="@{/admin-lte/bower_components/datatables.net/js/jquery.dataTables.js}"></script>
<script th:src="@{/admin-lte/bower_components/datatables.net-bs/js/dataTables.bootstrap.js}"></script>
<!-- Bootstrap slider -->
<script th:src="@{/admin-lte/plugins/bootstrap-slider/bootstrap-slider.js}"></script>
<script th:src="@{/admin-lte/bower_components/fullcalendar/dist/fullcalendar.min.js}"></script>
<!-- AdminLTE dashboard demo (This is only for demo purposes) -->
<!--<script th:src="@{/admin-lte/dist/js/pages/dashboard2.js}"></script>-->
<!-- AdminLTE App -->
<script th:src="@{/admin-lte/dist/js/adminlte.min.js}"></script>
<!-- AdminLTE for demo purposes [换肤] -->
<script th:src="@{/admin-lte/dist/js/demo.js}"></script>

<script type="text/javascript">
    function bindLeftMenusEvent() {
        $('.sidebar-menu a[data-pjax]').on('click', function () {
            $('.sidebar-menu .active').each(function (i, el) {
                $(el).removeClass('active');
            });
            $(this).parent().addClass('active');
        });
    }

    $(document).ready(function () {
        if ($.support.pjax) {
            $(document).pjax('a[data-pjax]', '#pjax-container', {
                maxCacheLength: 0,
                push: false,
                replace: true,
                fragment: '#pjax-container',
                timeout: 8000
            });
            bindLeftMenusEvent();
        }


    });
</script>
</body>
</html>
